#ifndef PIECES_H_
#define PIECES_H_

#include <stdio.h>
#include <stdlib.h>

#define PIECE_BLOCKS 5

SE_image *tile[8];


int pieces[7][4][25] =
{
	{
		/*pieza I*/
		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,1,1,1,1,
		 0,0,0,0,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,1,0,0,
		 0,0,1,0,0,
		 0,0,1,0,0,
		 0,0,1,0,0},
	
		{0,0,0,0,0,
		 0,0,0,0,0,
		 1,1,1,1,0,
		 0,0,0,0,0,
		 0,0,0,0,0},
	
		{0,0,1,0,0,
		 0,0,1,0,0,
		 0,0,1,0,0,
		 0,0,1,0,0,
		 0,0,0,0,0}
	},
	{
		/*pieza cuadrado*/
		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,0,2,2,0,
		 0,0,2,2,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,0,2,2,0,
		 0,0,2,2,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,0,2,2,0,
		 0,0,2,2,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,0,2,2,0,
		 0,0,2,2,0,
		 0,0,0,0,0}
	},
	{
		/*pieza n*/
		{0,0,0,0,0,
		 0,0,0,3,0,
		 0,0,3,3,0,
		 0,0,3,0,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,3,3,0,0,
		 0,0,3,3,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,3,0,0,
		 0,3,3,0,0,
		 0,3,0,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,3,3,0,0,
		 0,0,3,3,0,
		 0,0,0,0,0,
		 0,0,0,0,0}
	},
	{
		/*pieza n invertida*/
		{0,0,0,0,0,
		 0,0,4,0,0,
		 0,0,4,4,0,
		 0,0,0,4,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,0,4,4,0,
		 0,4,4,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,4,0,0,0,
		 0,4,4,0,0,
		 0,0,4,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,4,4,0,
		 0,4,4,0,0,
		 0,0,0,0,0,
		 0,0,0,0,0}
	},
	{
		/*pieza L*/
		{0,0,0,0,0,
		 0,0,5,0,0,
		 0,0,5,0,0,
		 0,0,5,5,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,5,5,5,0,
		 0,5,0,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,5,5,0,0,
		 0,0,5,0,0,
		 0,0,5,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,0,5,0,
		 0,5,5,5,0,
		 0,0,0,0,0,
		 0,0,0,0,0}
	},
	{
		/*pieza L invertida*/
		{0,0,0,0,0,
		 0,0,6,0,0,
		 0,0,6,0,0,
		 0,6,6,0,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,6,0,0,0,
		 0,6,6,6,0,
		 0,0,0,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,6,6,0,
		 0,0,6,0,0,
		 0,0,6,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,6,6,6,0,
		 0,0,0,6,0,
		 0,0,0,0,0}
	},
	{
		/*pieza T*/
		{0,0,0,0,0,
		 0,0,7,0,0,
		 0,0,7,7,0,
		 0,0,7,0,0,
		 0,0,0,0,0},	

		{0,0,0,0,0,
		 0,0,0,0,0,
		 0,7,7,7,0,
		 0,0,7,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,7,0,0,
		 0,7,7,0,0,
		 0,0,7,0,0,
		 0,0,0,0,0},
	
		{0,0,0,0,0,
		 0,0,7,0,0,
		 0,7,7,7,0,
		 0,0,0,0,0,
		 0,0,0,0,0}
	}
};/*piezas*/




void load_tiles();



























#endif
